var http=require('http');

http.createServer(function (request,response) {
     console.log(request);
     response.writeHead(200,{
         "content-type":'text/plain'  // 内容类型：简单文本
     })
      response.write("this is a response message:")
      response.end('hello world!')
}).listen(3000)


console.log("the server in running at port 3000");
